<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      /*
        第一步：设置定位方式
         ● static
         ● relative
         ● absolute
         ● fixed
         ● sticky
       */
      position: absolute;
      /*
        第二部：通过方位属性设置偏移量
         ● top bottom
         ● left right
       */
      bottom: 100px;
      right: 100px;

      width: 100px;
      height: 100px;
      background-color: rgba(17, 119, 255, 0.5);
    }
  </style>
</head>

<body>
  <div></div>
</body>

</html>